home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000064_bardicrune@hotmail.com_Tue Dec 16 09:35:55 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Path: newsmaster.cc.columbia.edu!phl-feed.news.verio.net!iad-feed.news.verio.net!nntp1.tagonline.com!nycmny1-snf1.gtei.net!news.gtei.net!colt.net!peernews3.colt.net!newsfeed.stueberl.de!fu-berlin.de!postnews1.google.com!not-for-mail
  2. From: bardicrune@hotmail.com (Glenn W. Betz, III)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: HTTP Header Content-Type
  5. Date: 15 Dec 2003 14:19:47 -0800
  6. Organization: http://groups.google.com
  7. Lines: 62
  8. Message-ID: <c205519c.0312151419.1e2995d1@posting.google.com>
  9. NNTP-Posting-Host: 216.248.142.193
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12. X-Trace: posting.google.com 1071526787 28887 127.0.0.1 (15 Dec 2003 22:19:47 GMT)
  13. X-Complaints-To: groups-abuse@google.com
  14. NNTP-Posting-Date: Mon, 15 Dec 2003 22:19:47 +0000 (UTC)
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14745
  16.  
  17. I am having a problem with 8.0.209+ssl/tls Kermit's http header
  18. function.  I am trying to post a multipart/form-data file to a web
  19. servlet and am receiving the following message in the servlet's log
  20. file:
  21. ------------------------------------------------------------------------------
  22. Corrupt form data: no leading boundary, Line is: 
  23. ------------------------------------------------------------------------------
  24. I should be getting something after the colon but it is empty.  This
  25. is what I am getting from the people responsible for the servlet.
  26. ------------------------------------------------------------------------------
  27. Looks like we can't read your Content-Type: multipart/form-data;
  28. boundary=?????? string, could it be some unreadable characters in the
  29. beginning of the string? Here the logic that checks for boundary =
  30.  
  31. if (!line.startsWith(_boundary))
  32. throw new Exception("Corrupt form data: no leading boundary, Line is:"
  33. + line);
  34.  
  35. where line is a String and nothing is being display in the log with
  36. "line'
  37. ------------------------------------------------------------------------------Here
  38. is the kermit script I am executing:
  39. ------------------------------------------------------------------------------
  40. #!/ctc/bin/kermit +
  41.  
  42. #OPEN THE CONNECTION AND POST THE FILE
  43. set authentication tls verify off
  44. http /HEADER:{{Content-Type: multipart/form-data;
  45. boundary=abc123abc123abc123} {Host: website.com{Port: 443}} {Accept:
  46. text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2}} /user:\%2
  47. /password:\%3  post inputfile.txt https://website.com/dir/path/servlet
  48. outputfile.txt
  49.  
  50. #IF THE CONNECTION FAILS ERROR OUT
  51. if failure stop 1 HTTP POST failed: \v(http_message)
  52.  
  53. #CLEANUP THE CONNECTION AND EXIT
  54. http close
  55. quit
  56. -------------------------------------------------------------------------------
  57. The following is the multipart file I am sending (minus the data):
  58. -------------------------------------------------------------------------------
  59. --abc123abc123abc123
  60. Content-Disposition: form-data; name="message"
  61. Content-Type: text/xml
  62.  
  63. (xml data here.)
  64.  
  65. --abc123abc123abc123
  66. Content-Disposition: form-data;name="textFileAttached";
  67. filename="filename.txt"
  68. Content-Type: text/plain
  69.  
  70. (plain text data here.)
  71.  
  72. --abc123abc123abc123--
  73. -------------------------------------------------------------------------------
  74. I would appreciate any help someone could offer me.
  75.  
  76. Thanks,
  77.  
  78. Glenn W. Betz, III
  79.